﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserReg.ascx.cs" Inherits="Control_UserReg" %>

<script>
      var clientID = '<%=TB_PaiXian.ClientID %>';
        function opens() {
            window.open("Manageweb/Member/SetMemPosition.aspx?a=" + clientID, "x", "height=400, width=400, top=200, left=200, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=n o, status=no");
        }
</script>

<asp:Label ID="LB_UserReg" ForeColor="Red" Font-Size="Small" Font-Bold="True" runat="server"></asp:Label>
<table border="1" cellpadding="0" cellspacing="0" width="90%">
    <tr>
        <td style="text-align: center; width: 25%;">
            &nbsp;登录账号</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_LoginID" runat="server" Enabled="False"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="text-align: center; width: 25%; height: 26px;">
            用户名</td>
        <td style="text-align: left; height: 26px;">
            &nbsp;<asp:TextBox ID="TB_LoginName" runat="server"></asp:TextBox>
            <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TB_LoginID"
                Display="Dynamic" ErrorMessage="必填字段" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="text-align: center; width: 25%;">
            &nbsp;性别</td>
        <td style="text-align: left">
            &nbsp;<asp:DropDownList ID="DL_Sex" runat="server">
                <asp:ListItem Value="1">男</asp:ListItem>
                <asp:ListItem Value="0">女</asp:ListItem>
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TB_LoginID"
                Display="Dynamic" ErrorMessage="*" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;密码</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_Pass" runat="server" TextMode="Password" Width="155px"></asp:TextBox>
            <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RFV_TB_Pass" runat="server" ControlToValidate="TB_Pass"
                Display="Dynamic" ErrorMessage="必填字段" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;确认密码</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_RePass" runat="server" TextMode="Password" Width="155px"></asp:TextBox>
            <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RFV_TB_RePass" runat="server" ControlToValidate="TB_RePass"
                Display="Dynamic" ErrorMessage="必填字段" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator><asp:CompareValidator
                    ID="CV_Pass" runat="server" ControlToCompare="TB_Pass" ControlToValidate="TB_RePass"
                    Display="Dynamic" ErrorMessage="两次输入密码不一致" ValidationGroup="Btn_Submit"></asp:CompareValidator>
        </td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;国家</td>
        <td style="text-align: left">
            &nbsp;<asp:DropDownList ID="TB_Country" runat="server">
                <asp:ListItem Value="中国">中国</asp:ListItem>
                <asp:ListItem>韩国</asp:ListItem>
                <asp:ListItem>日本</asp:ListItem>
                <asp:ListItem>越南</asp:ListItem>
                <asp:ListItem>泰国</asp:ListItem>
                <asp:ListItem>新加坡</asp:ListItem>
                <asp:ListItem>马来西亚</asp:ListItem>
                <asp:ListItem>印度尼西亚</asp:ListItem>
                <asp:ListItem>德国</asp:ListItem>
                <asp:ListItem>英国</asp:ListItem>
                <asp:ListItem>法国</asp:ListItem>
                <asp:ListItem>美国</asp:ListItem>
                <asp:ListItem>巴西</asp:ListItem>
                <asp:ListItem>澳大利亚</asp:ListItem>
                <asp:ListItem>南非</asp:ListItem>
            </asp:DropDownList></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;城市</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_City" runat="server"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;地址</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_Address" runat="server"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;邮编</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_PostCode" runat="server"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;邮箱</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_Email" runat="server"></asp:TextBox>
            <asp:RegularExpressionValidator ID="REV_TB_Email" runat="server" ControlToValidate="TB_Email"
                Display="Dynamic" ErrorMessage="格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                ValidationGroup="Btn_Submit"></asp:RegularExpressionValidator></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;电话</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_Tel" runat="server"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;手机</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_Mobile" runat="server"></asp:TextBox>
            <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="TB_Mobile" Display="Dynamic" ErrorMessage="必填" 
                ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;真实姓名</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_RegName" runat="server"></asp:TextBox>
            <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                ControlToValidate="TB_RegName" Display="Dynamic" ErrorMessage="必填" 
                ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator>
        </td>
    </tr>    
    <tr>
        <td style="text-align: center">
            &nbsp;身份证号</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_CardCode" runat="server" Width="187px"></asp:TextBox><span
                style="color: #ff0000">*</span><asp:RequiredFieldValidator
                ID="RequiredFieldValidator3" runat="server" ControlToValidate="TB_CardCode" Display="Dynamic"
                ErrorMessage="必填字段" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TB_CardCode"
                Display="Dynamic" ErrorMessage="身份证号格式不正确" Font-Bold="True" SetFocusOnError="True"
                ValidationExpression="((11|12|13|14|15|21|22|23|31|32|33|34|35|36|37|41|42|43|44|45|46|50|51|52|53|54|61|62|63|64|65)[0-9]{4})(([1|2][0-9]{3}[0|1][0-9][0-3][0-9][0-9]{3}[X0-9])|([0-9]{2}[0|1][0-9][0-3][0-9][0-9]{3}))$" ValidationGroup="Btn_Submit"></asp:RegularExpressionValidator></td>
    </tr>
    <%--    <tr>
        <td style="text-align: center">
            &nbsp;重设密码问题</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_Question" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RFV_TB_Question" runat="server" ControlToValidate="TB_Question"
                Display="Dynamic" ErrorMessage="*" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator></td>
    </tr>
    <tr>
        <td style="text-align: center">
            &nbsp;重设密码答案</td>
        <td style="text-align: left">
            &nbsp;<asp:TextBox ID="TB_Answer" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RFV_TB_Answer" runat="server" ControlToValidate="TB_Answer"
                Display="Dynamic" ErrorMessage="*" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator></td>
    </tr>--%>
</table>
<table>
    <tr class="input_table_header">
        <td style="font-size: 16px; font-family: 粗黑;" colspan="4" align="left">
            <span style="font-size: 14pt; font-family: 方正黑体简体">推荐人资料</span></td>
    </tr>
    <tr style="font-size: 12pt">
        <td>
        </td>
        <td class="label" style="color: red;">
            <font color='red'>* </font>推荐人帐户号码 :</td>
        <td class="input">
            <asp:TextBox ID="TB_ParentID" runat="server"></asp:TextBox>&nbsp;
        </td>
    </tr>
    <tr style="font-size: 12pt">
        <td>
        </td>
        <td class="label" style="color: red">
            * 排线位置 :</td>
        <td class="input">
            <asp:TextBox ID="TB_PaiXian" runat="server"></asp:TextBox><input id="Button1" type="button"
                value="安置" onclick="opens()" /></td>
    </tr>
</table>
<br />
<table>
    <tr class="input_table_header">
        <td style="font-size: 16px; font-family: 粗黑;" colspan="4" align="left">
            <span style="font-size: 14pt; font-family: 方正黑体简体">输入密钥</span></td>
    </tr>
    <tr style="font-size: 12pt">
        <td>
        </td>
        <td class="label" style="color: red;">
            <font color='red'>* </font>密钥 :</td>
        <td class="input">
            <asp:TextBox ID="TB_MiYao" runat="server" TextMode="Password"></asp:TextBox>
            <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TB_MiYao"
                Display="Dynamic" ErrorMessage="必填字段" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator></td>
    </tr>
    <tr style="font-size: 12pt">
        <td>
        </td>
        <td class="label" style="color: red">
            * 确认密钥 :</td>
        <td class="input">
            <asp:TextBox ID="TB_QrMiYao" runat="server" TextMode="Password"></asp:TextBox>
            <span style="color: #ff0000">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TB_QrMiYao"
                Display="Dynamic" ErrorMessage="必填字段" ValidationGroup="Btn_Submit"></asp:RequiredFieldValidator>
            <asp:CompareValidator ID="CompareValidator2" runat="server" ControlToCompare="TB_MiYao"
                ControlToValidate="TB_QrMiYao" Display="Dynamic" ErrorMessage="两次输入不一致" ValidationGroup="Btn_Submit"></asp:CompareValidator></td>
    </tr>
</table>
<%--<table border="1" cellpadding="0" cellspacing="0" width="90%">
    <tr>
        <td colspan="2" style="text-align: center">
</td>
    </tr>--%>
<%--</table>--%>
<div style="text-align: center">
    <asp:Button ID="Btn_Submit" runat="server" Text="确认并提交信息" OnClick="Btn_Submit_Click"
        ValidationGroup="Btn_Submit" />
    <br />
    <br />

</div>
    <table style="text-align:left; font-size: 12pt;">
        <tr>
            <td>
                <span><span style="font-size: 12pt"><span style="background-color: white"><span
                    style="color: orangered"><strong>注意<span>：</span></strong></span></span><span
                        style="color: mediumorchid; background-color: white"><span style="color: orangered"><strong>会员注册成功后会自动从当前推荐人账户扣除￥<%=DeductMoney%>。<br />
                            注册会员首次充值必须在</strong>￥<%=MemAccountMoney%><strong>以上才允许交易。<br />
                            身份证、姓名、手机、邮箱、银行账户等个人信息一定要如实填写，否则提现出现问题公司概不负责。<br />
                            注册信息本公司严格保密。
                            </strong><span style="font-size: 10.5pt; color: #000000; font-family: 宋体; mso-ascii-font-family: Calibri;
                                mso-hansi-font-family: Calibri; mso-bidi-font-family: 'Times New Roman'; mso-font-kerning: 1.0pt;
                                mso-ansi-language: EN-US; mso-fareast-language: ZH-CN; mso-bidi-language: AR-SA">
                                </span><br />
                        </span><strong></strong>
                    </span></span>
                </span>
            </td>
        </tr>     
    </table>
